<?php
if (!defined('WEB_ROOT')) {
	exit;
}

$dv_id = (isset($_GET['dv_id']) && $_GET['dv_id'] > 0) ? $_GET['dv_id'] : 0;

$deptList = buildDeptOptions($dv_id);
?> 

<div class="onecolumn">
				<div class="header">
					<span>Thêm nhóm ngành</span>
				</div>
				<br class="clear"/>
				<div class="content">
					<form action="processTopicGroup.php?action=add" method="post" enctype="multipart/form-data" name="frmAddTopicGroup" id="frmAddTopicGroup">
					  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable">
					  <tr> 
						   <td width="150" class="label">Mã nhóm ngành</td>
						   <td class="content"> <input name="txtMann" type="text" class="box" id="txtMann" size="20" maxlength="20"></td>
					  </tr>
					  <tr> 
						   <td width="150" class="label">Tên nhóm ngành</td>
						   <td class="content"> <input name="txtTennn" type="text" class="box" id="txtTennn" size="60" maxlength="60"></td>
					  </tr>
					  <!--<tr> 
						   <td width="150" class="label">Đơn vị</td>
						   <td class="content"><input name="txtDonvi" type="text" id="txtDonvi" size="40" maxlength="40" class="box"> </td>
					  </tr>-->
					  <tr> 
						   <td width="110" class="label">Đơn vị</td>
						   <td class="content"> <select name="cboDept" id="cboDept" class="box">
							<option value="" selected>-- Chọn đơn vị --</option>
								<?php
									echo $deptList;
								?>	 
							</select>  
					  </tr>
					 </table>
					 <p align="center"> 
					 
					  <input name="btnAddTopicGroup" type="button" id="btnAddTopicGroup" value="Thêm nhóm ngành" onClick="checkAddTopicGroupForm();" class="box">
					  &nbsp;&nbsp;<input name="btnCancel" type="button" id="btnCancel" value=" Hủy " onClick="window.location.href='index.php';" class="box">  
					 </p>
					</form>
				</div>
			</div>